﻿using Microsoft.SharePoint;

namespace SharePoint.Orm {
	/// <summary>
	/// Options used to create a <see cref="SPDataContext"/>.
	/// </summary>
	public class SPDataContextOptions {
		/// <summary>
		/// The <see cref="IValueTypeConverter"/> used to read and write values from a <see cref="SPListItem"/>.
		/// </summary>
		public IValueTypeConverter ValueTypeConverter { get; set; }

		/// <summary>
		/// Initializes the values with default values.
		/// </summary>
		public SPDataContextOptions() {
			ValueTypeConverter = new DefaultValueTypeConverter();
		}
	}
}
